﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("Location", "Location", new string[] { "LOCATIONID" })]
    [KnownType(typeof(Location))]
    public class Location : MB.Orm.Common.BaseModel
    {
        private int _LOCATIONID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOCATIONID", System.Data.DbType.Int32)]
        public int LOCATIONID
        {
            get { return _LOCATIONID; }
            set { _LOCATIONID = value; }
        }
        private string _LOCATIONCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOCATIONCODE", System.Data.DbType.String)]
        public string LOCATIONCODE
        {
            get { return _LOCATIONCODE; }
            set { _LOCATIONCODE = value; }
        }
        private string _LOCATIONTYPE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOCATIONTYPE", System.Data.DbType.String)]
        public string LOCATIONTYPE
        {
            get { return _LOCATIONTYPE; }
            set { _LOCATIONTYPE = value; }
        }
        private int _WAREHOUSEID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WAREHOUSEID", System.Data.DbType.Int32)]
        public int WAREHOUSEID
        {
            get { return _WAREHOUSEID; }
            set { _WAREHOUSEID = value; }
        }
        private string _GOODSRACK;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSRACK", System.Data.DbType.String)]
        public string GOODSRACK
        {
            get { return _GOODSRACK; }
            set { _GOODSRACK = value; }
        }
        private decimal _TIER;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TIER", System.Data.DbType.Decimal)]
        public decimal TIER
        {
            get { return _TIER; }
            set { _TIER = value; }
        }
        private decimal _COLUMNS;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("COLUMNS", System.Data.DbType.Decimal)]
        public decimal COLUMNS
        {
            get { return _COLUMNS; }
            set { _COLUMNS = value; }
        }
        private string _AREA;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("AREA", System.Data.DbType.String)]
        public string AREA
        {
            get { return _AREA; }
            set { _AREA = value; }
        }
        private string _ROADWAY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ROADWAY", System.Data.DbType.String)]
        public string ROADWAY
        {
            get { return _ROADWAY; }
            set { _ROADWAY = value; }
        }
        private decimal _VOLUME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("VOLUME", System.Data.DbType.Decimal)]
        public decimal VOLUME
        {
            get { return _VOLUME; }
            set { _VOLUME = value; }
        }
        private string _CREATER;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATER", System.Data.DbType.String)]
        public string CREATER
        {
            get { return _CREATER; }
            set { _CREATER = value; }
        }
        private DateTime _CREATEDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATEDATE", System.Data.DbType.DateTime)]
        public DateTime CREATEDATE
        {
            get { return _CREATEDATE; }
            set { _CREATEDATE = value; }
        }
        private string _EDITOR;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("EDITOR", System.Data.DbType.String)]
        public string EDITOR
        {
            get { return _EDITOR; }
            set { _EDITOR = value; }
        }
        private DateTime _EDITDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("EDITDATE", System.Data.DbType.DateTime)]
        public DateTime EDITDATE
        {
            get { return _EDITDATE; }
            set { _EDITDATE = value; }
        }
        private string _REMARK;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("REMARK", System.Data.DbType.String)]
        public string REMARK
        {
            get { return _REMARK; }
            set { _REMARK = value; }
        }
        private string _WAREHOUSENAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WAREHOUSENAME", System.Data.DbType.String)]
        public string WAREHOUSENAME
        {
            get { return _WAREHOUSENAME; }
            set { _WAREHOUSENAME = value; }
        }
        private string _CELLNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CELLNO", System.Data.DbType.String)]
        public string CELLNO
        {
            get { return _CELLNO; }
            set { _CELLNO = value; }
        }
        private string _STATUS;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("STATUS", System.Data.DbType.String)]
        public string STATUS
        {
            get { return _STATUS; }
            set { _STATUS = value; }
        }

        [DataMember]
        public string ErrorMsg { get; set; }
    }
}
